//
//  BGRoutesTests.m
//  BGRoutesTests
//
//  Created by chenguibang on 2017/3/7.
//  Copyright © 2017年 chenguibang. All rights reserved.
//

#import <XCTest/XCTest.h>
#import <BGRoutes/BGRoutes.h>
@interface BGRoutesTests : XCTestCase

@end

@implementation BGRoutesTests

- (void)setUp {
    [super setUp];
    // Put setup code here. This method is called before the invocation of each test method in the class.
}

- (void)tearDown {
    // Put teardown code here. This method is called after the invocation of each test method in the class.
    [super tearDown];
}

- (void)testExample {
    // This is an example of a functional test case.
    // Use XCTAssert and related functions to verify your tests produce the correct results.
}

- (void)testPerformanceExample {
    // This is an example of a performance test case.
    [self measureBlock:^{
        // Put the code you want to measure the time of here.
    }];
}

-(void)testFMDB{
    NSString *doc =[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES)  lastObject];
    
    NSString *fileName = [doc stringByAppendingPathComponent:@"bgroutes.sqlite"];
    BGRouteManager *ma = [[BGRouteManager alloc]init];
    [ma setUpRulesWithSQLite:fileName];
   FMResultSet *set = [ma.fmDatabase executeQuery:@"select * from tb_route;"];
    NSLog(@"路由表  : %@ " ,set);

    
}

@end
